/*
 * TrackerSD.hh
 *
 *  Created on: 14.04.2011
 *      Author: ed
 */

#ifndef TRACKERSD_HH_
#define TRACKERSD_HH_
#include "G4VSensitiveDetector.hh"
#include "globals.hh"
class TrackerSD : public G4VSensitiveDetector
{
public:
	TrackerSD(G4String name);
	virtual ~TrackerSD();
	void Initialize(G4HCofThisEvent*HCE);
	void EndOfEvent(G4HCofThisEvent*HCE);
	G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
	inline void SetParticlesPerEvent(G4int ParticlesPerEvent){ParticlesPerEvent = particlesPerEvent;}
	inline G4int GetParticlesPerEvent(){return particlesPerEvent;}
	inline G4int GetLightOutput(){return lightOutput;}
	inline G4double GetLightCollection(){return (double)lightOutput/(double)particlesPerEvent;}
private:
	G4int particlesPerEvent;
	G4int lightOutput;
};

#endif /* TRACKERSD_HH_ */
